/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package onLineCmd;

/**
 *
 * @author boomar
 */
public class Article {

    private int id;
    private double prix;
    private String nom;
    private String decription;

    public Article(int id, double prix, String nom, String decription) {
        this.id = id;
        this.prix = prix;
        this.nom = nom;
        this.decription = decription;
    }

    public Article(int id, String nom, String decription) {
        this.id = id;
        this.nom = nom;
        this.decription = decription;
    }

    public String getDecription() {
        return decription;
    }

    public int getId() {
        return id;
    }

    public double getPrix() {
        return this.prix;
    }

    public String getNom() {
        return nom;
    }

    public void setDecription(String decription) {
        this.decription = decription;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public void setPrix(double prix) {
        this.prix = prix;
    }

    @Override
    public String toString() {
        return "Article{" + "id=" + id + "nom=" + nom + "decription=" + decription + '}';
    }
}
